#!/usr/bin/php
<?php

//Apache-Log-Input recognition from STDINPUT
$filename = $argv[1];

//Init of all necessary globals
require_once("/var/www/nebulaoffice/system.php");
global $GO_DAV, $GO_CONFIG;
$db = new db();

$namelist = $GO_DAV->file_get_contents($filename);
$namelist = explode( "\n", $namelist);
array_pop($namelist);
$namelist = array_unique($namelist);

foreach( $namelist as $user )
  $GO_DAV->check_login($user);
